package test_kevin;

import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class TestFileDIr extends JFrame{
	private static final long serialVersionUID = -1942933121365734259L;

	public static void main(String args[]) {
		new TestFileDIr();
	}
	
	public TestFileDIr(){
		setupGUI();
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		pack();
		setVisible(true);
	}

	private void setupGUI() {
		Container c = this.getContentPane();
		GridBagConstraints gdc = new GridBagConstraints();
		
		JPanel filePanel = new JPanel();
		filePanel.setBackground(Color.red);
		filePanel.setPreferredSize(new Dimension(200,500));
		filePanel.setLayout(new GridBagLayout());
		
		c.add(filePanel);
		
		gdc.gridx = 0;
		gdc.gridy = 0;
		gdc.gridheight = 1;
		gdc.gridwidth = 1;
		
		JPanel dirPanel = new JPanel();
		dirPanel.setPreferredSize(new Dimension(200,10));
		filePanel.add(dirPanel, gdc);
		
		gdc.gridx = 0;
		gdc.gridy = 1;
		
		JPanel dirPanel2 = new JPanel();
		dirPanel2.setBackground(Color.blue);
		filePanel.add(dirPanel2, gdc);
		
	}
}
